import request from '@/utils/request'

// 查询订单支付信息列表
export function listOrderPayment(query) {
  return request({
    url: '/order/orderPayment/list',
    method: 'get',
    params: query
  })
}

// 查询订单支付信息详细
export function getOrderPayment(id) {
  return request({
    url: '/order/orderPayment/' + id,
    method: 'get'
  })
}

// 新增订单支付信息
export function addOrderPayment(data) {
  return request({
    url: '/order/orderPayment',
    method: 'post',
    data: data
  })
}

// 修改订单支付信息
export function updateOrderPayment(data) {
  return request({
    url: '/order/orderPayment',
    method: 'put',
    data: data
  })
}

// 删除订单支付信息
export function delOrderPayment(id) {
  return request({
    url: '/order/orderPayment/' + id,
    method: 'delete'
  })
}

// 导出订单支付信息
export function exportOrderPayment(query) {
  return request({
    url: '/order/orderPayment/export',
    method: 'get',
    params: query
  })
}
